package com.qys.livesMall.app.user.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 用户金币账户流水表
 * </p>
 *
 * @author wzy
 * @since 2023-06-24
 */
@Getter
@Setter
@TableName("h2_app_user_gold_record")
@Schema(name = "AppUserGoldRecord", description = "用户金币账户流水表")
public class AppUserGoldRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "金币流水id")
    @TableId(value = "id")
    private Long id;

    @Schema(description = "用户编号")
    private Long userId;

    @Schema(description = "用户名")
    private String userName;

    @Schema(description = "变动说明")
    private String remark;

    @Schema(description = "变动前金额")
    private BigDecimal oldGoldAmount;

    @Schema(description = "变动金额")
    private BigDecimal goldAmount;

    @Schema(description = "1=收入,2=支出")
    private Byte incomeType;

    @Schema(description = "订单类型")
    private Byte recordType;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "订单号")
    private String orderNo;
}
